{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
 <!--左侧导航结束-->
     <style>
		@media only screen and (max-width: 760px),(min-device-width: 768px) and (max-device-width:1024px)  {
		#mytable, #mytable thead, #mytable tbody, #mytable th, #mytable td, #mytable tr { 
			display: block; 
		}
		#mytable thead tr { 
			position: absolute;
			top: -9999px;
			left: -9999px;
		}
		#mytable td { 
			border: none;
			border-bottom: 1px solid #eee; 
			position: relative;
			padding-left:44% !important; 
			padding-top:10px ;
		}
	    #mytable tr{ margin-bottom:20px;}
		#mytable td:before { 
			position: absolute;
			top:10px;
			left:8px;
			width: 45%; 
			padding-right:10px;
			white-space: nowrap;
		}
		    #mytable td:nth-of-type(1):before { content: "学年学期"; }
			#mytable td:nth-of-type(2):before { content: "部门"; }
			#mytable td:nth-of-type(3):before { content: "工作计划"; }
			#mytable td:nth-of-type(4):before { content: "工作总结"; }
        }		
	</style>
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form name="myform" action="" method="get">
                <div class="box-header with-border">
                    
                    <p class="box-title">
					    <a href="index.php?a=summarize.plancount" class="btn btn-default">部门计划</a>
					    <a href="index.php?a=summarize.summarizecount" class="btn btn-primary">部门总结</a>
					</p>
					
                </div>
                <div class="box-body">
					<div class="col-md-3 form-group" style="padding:0;">
						  <label for="inputPassword3" class="col-sm-3 control-label" style="padding-right:0; padding-left:0; font-weight:500;">
							   标题：
						  </label>
						  <div class="input-group col-md-8 col-xs-12">
							   <input type="text" class="form-control" value="" name="summarize_title">
						  </div> 
				    </div>
					<div class="col-md-3 form-group" style="padding:0;">
						  <label class="col-sm-3 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500; margin:0;">
							   部门：
						  </label>
						  <div class="input-group col-md-8 col-xs-12">
							  <select class="form-control" name="department_id">
								  <option value=""> 全部</option>
								  {%foreach from=$department_lists key=key item=value%}
								  <option value="{%$key%}">{%$value%}</option>
								  {%/foreach%}
							  </select>    
						  </div> 
				    </div>
					<div class="col-md-5 col-xs-12 form-group" style="padding:0;">
						  <label for="inputPassword3" class="col-sm-2 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500; ">
							   时间：
						  </label>
						  <div class="input-group col-md-4" style="float:left;">
							   <input type="text" class="form-control" value="" id="from" name="from">
							     <div class="input-group-addon" style="padding:6px 7px;">
									<i class="fa fa-calendar"></i>
								 </div>
						  </div>
						  <span style="float:left;">  ~  </span >
						  <div class="input-group col-md-4" style="float:left;">
							   <input type="text" class="form-control" value="" id="to" name="to">
							      <div class="input-group-addon" style="padding:6px 7px;">
									 <i class="fa fa-calendar"></i>
								 </div>
						  </div>						  
				    </div>
					<div class="col-md-1 col-xs-12">
					   <input type="hidden" name="a" value="summarize.summarizecount">
					   <button type="submit" class="btn btn-warning">查 询</button>
					</div>
					<div style="clear:both; height:10px;"></div>
				     <table class="table table-bordered table-striped"  id="mytable">
                                <thead>
                                    <tr style="background-color:#a273ff">
                                        <td>学年</td>
										<td>学期</td>
                                        <td>部门</td>
										<td>标题</td>
										<td>时间</td>
										<td width="100">操作</td>
                                    </tr>	
                                </thead>
                                <tbody>
								 {%foreach from=$summarize_lists key=key item=value%}
                                    <tr>
									    <td>{%$value.semester_xname%}</td>
									    <td>{%$value.semester_name%}</td>
										<td>{%$value.department_name%}</td>							
										<td>
										<a href="index.php?a=summarize.manageclassifyinfoList&summarize_id={%$value.summarize_id%}&from=bumen2">{%$value.summarize_title%}</a>
										</td>
										<td>{%$value.create_time%}</td>	
										<td><a href="index.php?a=summarize.manageclassifyinfoList&summarize_id={%$value.summarize_id%}&from=bumen2" class="btn btn-success btn-sm" title="查看"><i class="fa fa-search"></i></a></td>
                                    </tr>	
									{%/foreach%}  	
                            </tbody>
                        </table>
				</div><!--box-body -->
             </form>
			 <div class="box-footer" style="border-top:0px;">
					{%$page%}
			 </div>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
{%include file="index.footer.tpl.php"%}
<script>
  $(function() {
    $( "#from" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
	  changeYear: true,
      numberOfMonths:1,
      onClose: function( selectedDate ) {
        $( "#to" ).datepicker( "option", "minDate", selectedDate );
      }
    });
    $( "#to" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
      changeYear: true,
      numberOfMonths:1,
      onClose: function( selectedDate ) {
        $( "#from" ).datepicker( "option", "maxDate", selectedDate );
      }
    });
  });
</script>
